# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=vvmplayer
pkgver=1.4
pkgrel=0
pkgdesc="front end GUI to display, play, and delete visual voicemails"
url="https://gitlab.com/kop316/vvmplayer"
arch="all !s390x !riscv64" # no libhandy1
license="GPL-3.0-only"
makedepends="
	evolution-data-server-dev
	callaudiod-dev
	glib-dev
	gst-plugins-base-dev
	gstreamer-dev
	gtk+3.0-dev
	libhandy1-dev
	meson
	"
checkdepends="xvfb-run"
depends="gst-plugins-ugly gst-plugins-good gst-libav vvmd"
subpackages="$pkgname-lang $pkgname-bash-completion"
source="https://gitlab.com/kop316/vvmplayer/-/archive/$pkgver/vvmplayer-$pkgver.tar.gz"

build() {
	abuild-meson \
		--sysconfdir=/etc \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	xvfb-run meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
sha512sums="
98d61756ad5de388dfa8c3a305e69b901fd86a3412519371074b269677f6a4ec5e83db6c1a84125e609ed5787d1aa867be14edb4df1c22e9c4166a3781c0f8c5  vvmplayer-1.4.tar.gz
"
